<!DOCTYPE html>
<html lang="en">
<head>
  
<meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>商品详情</title>
  <meta name="viewport" content="initial-scale=1, maximum-scale=1">
  <!-- <link rel="shortcut icon" href="http://favicon.ico"> -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0">


  <!-- <link rel="stylesheet" href="../../../css/sm.min.css">
  <link rel="stylesheet" href="../../../css/sm-extend.min.css">
  <script type="text/javascript" src="../../../common/common.js"></script> -->
  <link rel="stylesheet" href="https://gitee.com/huaflower/JinTianGuoJiCommonFile/raw/master/css/sm.min.css">
  <link rel="stylesheet" href="https://gitee.com/huaflower/JinTianGuoJiCommonFile/raw/master/css/sm-extend.min.css">
  <script type="text/javascript" src="https://gitee.com/huaflower/JinTianGuoJiCommonFile/raw/master/common/common.js"></script>
  
  <style>
      html, body {
        position: relative;
        height: 100%;
      }
      body {
        background: #eee;
        font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
        font-size: 14px;
        color:#000;
        margin: 0;
        padding: 0;
      }
      .swiper-container {
        width: 100%;
        height: 100%;
      }
      .swiper-slide {
        text-align: center;
        font-size: 18px;
        background: #fff;
        /* Center slide text vertically */
        display: -webkit-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-box-pack: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
        justify-content: center;
        -webkit-box-align: center;
        -ms-flex-align: center;
        -webkit-align-items: center;
        align-items: center;
      }

      .page.page-current{
        overflow: auto;
      }

  </style>
</head>
<body>
  
  <div class="page-group">
    <div class="page">
     

      <!-- 页面内容区域 -->
      <header class="bar bar-nav" style="position:fixed;top:0;" hidden>
          <button class="button button-link button-nav pull-left">
            <span class="icon icon-left"></span>
            <!-- 返回 -->
          </button>
          <button class="button button-link button-nav pull-right">
            分享
            <!-- <span class="icon icon-right"></span> -->
          </button>
          <!-- <h1 class="title">标题</h1> -->
      </header>
      <!-- Swiper -->
      <div class="swiper-container" style="height:200px;">
          <div class="swiper-wrapper">
            <div class="swiper-slide">Slide 1</div>
            <div class="swiper-slide">Slide 2</div>
            <div class="swiper-slide">Slide 3</div>
            <div class="swiper-slide">Slide 4</div>
            <div class="swiper-slide">Slide 5</div>
            <div class="swiper-slide">Slide 6</div>
            <div class="swiper-slide">Slide 7</div>
            <div class="swiper-slide">Slide 8</div>
            <div class="swiper-slide">Slide 9</div>
            <div class="swiper-slide">Slide 10</div>
          </div>
      </div>

      <div class="list-block media-list" style="margin:0;">
          <ul>
            <li>
              <div class="item-content">
                <!-- <div class="item-media"><img src="http://gqianniu.alicdn.com/bao/uploaded/i4//tfscom/i3/TB10LfcHFXXXXXKXpXXXXXXXXXX_!!0-item_pic.jpg_250x250q60.jpg" style='width: 2.2rem;'></div> -->
                <div class="item-inner">
                  <div class="item-title-row">
                    <div class="item-title">商品名称</div>
                    <div>赞188</div>
                  </div>
                  <div class="item-subtitle">售价：￥67</div>
                </div>
              </div>
            </li>
          </ul>
      </div>

      <div class="card" style="margin:0.5rem 0;">
          <div class="card-header">
            <div>问答</div>
            <div>全部回答</div>
          </div>
          <div class="card-content">
            <div class="card-content-inner">
              <div>

                <div>问题问题问题问题问题问题问题问题</div>
                <div>5人回答</div>
                <div>问题问题问题问题问题问题问题问题</div>
                <div>5人回答</div>
              </div>

            </div>
          </div>
          <!-- <div class="card-footer">卡脚</div> -->
      </div>


      <div class="buttons-tab">
          <a href="#tab1" class="tab-link active button">商品详情</a>
          <a href="#tab2" class="tab-link button" onclick="">附近门店</a>
      </div>
      <div class="content-block">
          <div class="tabs">
            <div id="tab1" class="tab active">
              <div class="content-block">
                <p>商品详情(后台数据)</p>
                <p>_</p>
              </div>
            </div>
            <!-- <div id="tab2" class="tab">
              <div class="content-block">
                <p>This is tab 2 content</p>
              </div>
            </div> -->
          </div>
      </div>

      
      <nav class="bar bar-tab" style="position:fixed;bottom:0;z-index: 100;">
          <a class="tab-item external active" href="#">
            <span class="icon icon-home"></span>
            <span class="tab-label">客服</span>
          </a>
          <a class="tab-item external" href="#">
            <span class="icon icon-me"></span>
            <span class="tab-label">收藏</span>
          </a>
          <a class="tab-item external" href="#" onclick="goBuy()">
            <span class="icon icon-star"></span>
            <span class="tab-label">去购买</span>
          </a>
      </nav>

      




    </div>
  </div>
  
  <!-- 固定的js引用，所有的jQuery 要用 $$ 表示 -->
<script type="text/javascript" src="https://gitee.com/huaflower/JinTianGuoJiCommonFile/raw/master/js/jquery-1.11.1.min.js"></script>
<!-- 这一行代码是为了 避免js冲突 -->
<script type="text/javascript">var $$ =jQuery.noConflict();</script>

<script type='text/javascript' src='https://gitee.com/huaflower/JinTianGuoJiCommonFile/raw/master/zepto/zepto.min.js' charset='utf-8'></script>
<script type='text/javascript' src='https://gitee.com/huaflower/JinTianGuoJiCommonFile/raw/master/js/sm.min.js' charset='utf-8'></script>
<!-- <script type='text/javascript' src='https://gitee.com/huaflower/JinTianGuoJiCommonFile/raw/master/js/sm-extend.min.js' charset='utf-8'></script> -->
<script src="https://gitee.com/huaflower/JinTianGuoJiCommonFile/raw/master/js/swiper/swiper.min.js"></script>
<script type="text/javascript">
  

  //放函数区域
  function toSwiper() {
    var swiper = new Swiper('.swiper-container');
  }

  function goBuy() {
    // 拥有店铺（不可删，必须）
    $.modal({
      close: false,
      title: '距离您最近的店',
      text: '<div>\
        <div style="border-top:solid 1px #CAC8C8;border-bottom:solid 1px #CAC8C8;">\
          <div style="text-align: left;">商店名称</div>\
          <div style="display:flex;justify-content:space-between;">\
            <span>具体地址具体地址具体地址</span>\
            <span>78km</span>\
          </div>\
        </div>\
        <div style="border-bottom:solid 1px #CAC8C8;height: 4.5rem;">\
          <img src="https://ss0.baidu.com/6ONWsjip0QIZ8tyhnq/it/u=1671204792,3567887483&fm=58" alt="图片丢失" style="width: 100%;height: 100%;">\
        </div>\
      </div>\
      ',
      buttons: [
        {
          text: '知道了',
          // onClick: function() {
          //   $.alert('You clicked first button!')
          // }
        },
        {
          text: '导航',
          // onClick: function() {
          //   $.alert('You clicked second button!')
          // }
        }
      ]
    });
    // // 无店面（不可删，必须）
    // $.modal({
    //   close: false,
    //   title: '距离您最近的店',
    //   text: '<div style="border-top:solid 1px #CAC8C8;border-bottom:solid 1px #CAC8C8;">非常抱歉，当前城市暂无门店，可选择最近的城市门店或者跳转客服进行咨询</div>',
    //   buttons: [
    //     {
    //       text: '附近城市门店',
    //       // onClick: function() {
    //       //   $.alert('You clicked first button!')
    //       // }
    //     },
    //     {
    //       text: '联系客服',
    //       // onClick: function() {
    //       //   $.alert('You clicked second button!')
    //       // }
    //     }
    //   ]
    // });
  }





  //需要初始化传递数据的函数，函数名，跟参数都不要变，固定写死的
  function getParams(data){
   // data需要转成json调用 ，函数urlParamParseJson();
     /*var jodata = JSON.parse(data); 
     if(isNotNull(jodata)){//
        
     }*/
     if(isNotNull(data)){
        // $$("#div_version").html("版本号：V"+data);
     }
  }



  	
    // 初始化
    $(function(){
      $.init();
      toSwiper();
    });
  </script>
</body>
</html>